d/ostree-boot.postinst: Trigger an update of the initramfs
authorSimon McVittie <smcv@debian.org>
Fri, 23 Aug 2019 08:57:18 +0000 (09:57 +0100)
committerSimon McVittie <smcv@debian.org>
Tue, 27 Aug 2019 19:24:57 +0000 (20:24 +0100)
Otherwise the dracut initramfs won't be rebuilt to include ostree-boot.

debian/changelog
debian/ostree-boot.postinst [new file with mode: 0644]

index fe67cc8741f2e8395121648be3538016ee10bc4a..4073a0e1191e8a6bc6d7fdcd1128c2e320dd1f08 100644 (file)
@@ -1,14 +1,16 @@
 ostree (2019.3-2) UNRELEASED; urgency=medium
 
-  [ Simon McVittie ]
-  * Switch packaging branch to debian/experimental
-
   [ Felix Krull ]
   * Enable ostree-boot package (Closes: #824650)
   * ostree-boot: Weaken dracut Depends to Recommends.
     The systemd parts of the package could also be used for integration
     with e.g. initramfs-tools.
 
+  [ Simon McVittie ]
+  * Switch packaging branch to debian/experimental
+  * d/ostree-boot.postinst: Trigger an update of the initramfs.
+    Otherwise the dracut initramfs won't be rebuilt to include ostree-boot.
+
  -- Simon McVittie <smcv@debian.org>  Fri, 23 Aug 2019 09:03:04 +0100
 
 ostree (2019.3-1) unstable; urgency=medium
diff --git a/debian/ostree-boot.postinst b/debian/ostree-boot.postinst
new file mode 100644 (file)
index 0000000..d3d7efc
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    (configure)
+        dpkg-trigger --no-await update-initramfs
+        ;;
+esac
+
+#DEBHELPER#